package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;
import java.sql.Blob;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_certificates")
@Table(appliesTo = "mb_certificates", comment = "卡包中的上传证件")
public class Certificates extends BaseModel implements Serializable {

	/**
	 * 卡包中的上传证件 
	 */
	private static final long serialVersionUID = 5009469135514181573L;

	/**
	 * 证件类型
	 */
	@ApiModelProperty(value = "证件类型")
	@Column(name = "certificates_type", columnDefinition = "varchar(8)  DEFAULT NULL COMMENT '证件类型'")
	private String certificates_type;
	
	@ApiModelProperty(value = "存储二级制数据图片")
	@Column(name = "pic_byte", columnDefinition = "blob  DEFAULT NULL COMMENT '存储二级制数据' ")
	private Blob pic_byte;
	@ApiModelProperty(value = "备用字段1")
	@Column(name = "by_A", columnDefinition = "varchar(8)  DEFAULT NULL COMMENT '备用字段1'")
	private String byA;
	
	@ApiModelProperty(value = "备用字段1")
	@Column(name = "by_B", columnDefinition = "varchar(8)  DEFAULT NULL COMMENT '备用字段2'")
	private String byB;
	
	@ApiModelProperty(value = "备用字段1")
	@Column(name = "by_C", columnDefinition = "varchar(8)  DEFAULT NULL COMMENT '备用字段3'")
	private String byC;

}
